// 法规制度

import request from "@/api/request";

// 查询所有法规类别
export const select_fg = () => {
    return request({
      url: "/statutesystem/statuteCate/selectIdName",
      method: "post",
      headers: { "Content-Type": "application/json" },
    });
  };

//   分页查询查询所有法规类别    分类
export const search_fg = (params) => {
    return request({
      url: "/statutesystem/statuteCate/selectAll",
      method: "post",
      data:params,
    });
  };

//   逻辑删除法规类别      分类
export const delete_fg = (params) => {
    return request({
      url: "/statutesystem/statuteCate/delete/"+params,
      method: "post",
    });
  };

//   新增法规类别      分类
export const add_fg = (params) => {
    return request({
      url: "/statutesystem/statuteCate/insert",
      method: "post",
      data:params,
      headers: { "Content-Type": "application/json" },
    });
  };

//   查询法规类别详细信息         分类
export const details_fg = (params) => {
    return request({
      url: "/statutesystem/statuteCate/selectDetails/"+params,
      method: "post",
    });
  };

//   修改法规类别      分类
export const update_fg = () => {
    return request({
      url: "/statutesystem/statuteCate/update",
      method: "post",
      data:params,
      headers: { "Content-Type": "application/json" },
    });
  };